package com.ctsi.system.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.List;

public class DictTreeDataDTO implements Serializable {
    private static final long serialVersionUID = 5183139236319286090L;
    private String id;
    private String parentId;
    private String name;
    private String code;
    private boolean leaf;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DictTreeDataDTO> children = null;

    public DictTreeDataDTO() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return this.parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<DictTreeDataDTO> getChildren() {
        return this.children;
    }

    public void setChildren(List<DictTreeDataDTO> children) {
        this.children = children;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    public boolean isLeaf() {
        return leaf;
    }

}
